<?php
function News_getAccessFile($fn,$mod='News')
{
	global $link, $_SESSION;
	$sql = "select mod_files.* from mod_files inner join um_user_access_mod_files on mod_files.fid=um_user_access_mod_files.file_id where um_user_access_mod_files.username='" . $_SESSION['sesusername'] . "' and mod_files.fname='$fn' and mod_files.modname='$mod'";
	//echo'sql=' . $sql . '<br />';
	$rs = $link->execute($sql);
	//echo '--> record count:' . $rs->recordcount();
	if ( $rs->EOF )	return false;
	else	return true;
}

?>